import { configureStore } from '@reduxjs/toolkit'
import authReducer from './authSlice'
import employeeReducer from './employeeSlice'
import departmentReducer from './departmentSlice'
import attendanceReducer from './attendanceSlice'
import salaryReducer from './salarySlice'
import recruitmentReducer from './recruitmentSlice'
import trainingReducer from './trainingSlice'
import roleReducer from './roleSlice'

const store = configureStore({
  reducer: {
    auth: authReducer,
    employee: employeeReducer,
    department: departmentReducer,
    attendance: attendanceReducer,
    salary: salaryReducer,
    recruitment: recruitmentReducer,
    training: trainingReducer,
    role: roleReducer
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({
      serializableCheck: false
    })
})

export default store